<?php
/******************
***Author:wangwei
***Email:915335526@qq.com
***Versions:1.0
******************/
header('Content-Type:text/html;charset=utf-8');//编码设置

//模板替换原理
include_once($GLOBALS['path'].'php/config.php');

$header = file_get_contents($GLOBALS['dirtpath'].'/header.html');
$template = file_get_contents($GLOBALS['dirtpath'].'/'.$htmlname.'.html');
$footer = file_get_contents($GLOBALS['dirtpath'].'/footer.html');

$filestring = $header.$template.$footer;

$file = handle(jsonarr('config'),$filestring,$diyarr,$limit,$total,$nums,$htmlname);

return $file;

?>